<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link href="{$imgDomain}css/manage.css" rel="stylesheet" type="text/css" />
	<title>管理后台</title>
<script type="text/javascript" src="/js/jquery-1.6.2.min.js"></script>

{literal}
<script>
if (window.parent != window)
{
	window.top.location.href=location.href;
}
</script>
{/literal}
</head>

<body>
    <form method="post" action="" name='theForm' id='theForm' >
    <div class="loginTop-box"><img src="{$imgDomain}images/manageLogo.png" alt="管理后台" /></div>
    <div class="loginBg-box">
      <div class="loginBox">
        <div class="lable">
          <table align="center" cellpadding="0" cellspacing="0" width="320">
            <tr>
              <th>用户名：</th>
              <td><input class="input1" type="text" id="username" name="username" value="" /></td>
            </tr>
            <tr>
              <th>密&nbsp;&nbsp;码：</th>
              <td><input class="input1" onkeydown="keyDown(event)" id="password" type="password" name="password" value="" /></td>
            </tr>
            <tr>
              <th></th>
              <td><a href="#" class="button1" id="signin">登录</a></td>
            </tr>
          </table>
          <input type="hidden" name="act" value="signin" />
        </div>
      </div>
      <div class="blank30"></div>
      <div class="M_foot">版权所有 &copy; 2002-2012 <span class="color1">社区一卡通</span>，并保留所有权利。</div>
    </div>
    </form>

<script language="JavaScript">

  document.forms['theForm'].elements['username'].focus();
  {literal}

  $("#signin").click(function(){

	  if($("#password").val()=="" || $("#username").val()=="")
	  {
		  alert("用户名或密码不能为空");
		  return false;
	  }		
	  $("#theForm").submit();
	  
	});

   //回车的键值为13  
     function keyDown(e){ 
          if (e.keyCode == 13) {  
             //js 监听对应的id  
        	  $("#signin").click();
              return false ;  
          }  
      }  

  {/literal}

</script>
{$jsBlock}
</body>
</html>
